var src = require("../public/img/route.jpg").default;

var img = document.createElement('img');
img.src = src;
document.body.appendChild(img);